package com.weizhu.swufer.autoconfiguration;

import com.weizhu.swufer.core.server.SwuferBootstrap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@Configuration
public class SwuferAutoStart implements ApplicationRunner {
    @Autowired
    SwuferBootstrap bootstrap;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        bootstrap.start();
    }
}
